package cn.com.pxto.model;
/**
 * 
 * @author feng jiqiang
 * @hibernate.class
 *      table="tbl_nanning_user_object_rule"
 *
 */
public class UserObjectRule extends BaseObject {
	private Integer id;
	private Integer srcType;
	private Long src;  //Long
	private Integer objectType;
	private Integer objectRangeType;
	private Long object;  //Long
	private Long mode;  //Long
	private String objectSid;
//	private String srcHid;
	//private String srcGid;
//	private Long srcGid;
//	private String objectProductSid;
//	private Integer limitCount;
	private Long startValidDate;
	private Long endValidDate;
//	private Integer limitDownload;
//	private Integer limitOfflineCount;
//	private Integer limitOfflineTime;
//	private String objectProductModuleSid;
	
	public UserObjectRule(){
		
	}
	
	public UserObjectRule(Long src,Long object){
		this.src=src;
		this.object=object;
		this.srcType=new Integer(1);
		this.objectType=new Integer(1);
		this.objectRangeType=new Integer(1);
		this.mode=new Long(0l);
	}
	
	/**
	 * @hibernate.id
	 *       column="ID"
	 *       length="4"
	 *       generator-class = "identity"
	 * @return Returns the id
	 */
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * @hibernate.property 
	 *      column="mode"
	 *      length="19"
	 * @return Returns the mode
	 */
	public Long getMode() {
		return mode;
	}
	public void setMode(Long mode) {
		this.mode = mode;
	}
	/**
	 * @hibernate.property 
	 *      column="object"
	 *      length="19"
	 * @return Returns the object
	 */
	public Long getObject() {
		return object;
	}
	public void setObject(Long object) {
		this.object = object;
	}

	/**
	 * @hibernate.property 
	 *      column="object_type"
	 *      length="4"
	 * @return Returns the object_type
	 */
	public Integer getObjectType() {
		return objectType;
	}
	public void setObjectType(Integer objectType) {
		this.objectType = objectType;
	}
	/**
	 * @hibernate.property 
	 *       column="src"
	 *       length="19"
	 * @return Returns the src
	 */
	public Long getSrc() {
		return src;
	}
	public void setSrc(Long src) {
		this.src = src;
	}
	/**
	 * @hibernate.property 
	 *       column="src_type"
	 *       length="4"
	 * @return Returns the src_type
	 */
	public Integer getSrcType() {
		return srcType;
	}
	public void setSrcType(Integer srcType) {
		this.srcType = srcType;
	}

	
	/**
	 * @hibernate.property 
	 *        column="object_range_type"
	 *        length="4"
	 * @return Returns the object_range_type
	 */
	public Integer getObjectRangeType() {
		return objectRangeType;
	}
	public void setObjectRangeType(Integer objectRangeType) {
		this.objectRangeType = objectRangeType;
	}

	
	/**
	 * @hibernate.property 
	 *       column="start_valid_date"
	 *       length="8"
	 * @return Returns the start_valid_date
	 */
	public Long getStartValidDate() {
		return startValidDate;
	}
	public void setStartValidDate(Long startValidDate) {
		this.startValidDate = startValidDate;
	}

	/**
	 * @hibernate.property
	 *      column="end_valid_date"
	 *      length="8"
	 * @return Returns the end_valid_date
	 */
	public Long getEndValidDate() {
		return endValidDate;
	}
	public void setEndValidDate(Long endValidDate) {
		this.endValidDate = endValidDate;
	}

}
